package com.hspedu;

/**
 * @author DL5O
 * @version 1.0
 */
public class Cat {
    private String name = "招财猫";
    public int age = 10;


    public Cat() {
        System.out.println("无参构造器被调用");
    }

    public Cat(String name) {
        this.name = name;
    }

    public void hi() {
//        System.out.println("hi " + name);
    }

    public void cry() {
        System.out.println(name + "喵喵叫");
    }
}
